<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<LCA.Community.Web.Models.ISocialNetworkElement>" %>
<%@ Import Namespace="LCA.Community.DAL.Model" %>
<%@ Import Namespace="LCA.Community.Web.Models" %>
<%@ Import Namespace="LCA.Community.Web.Controllers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeaderContent" runat="server">
    <script src="<%= Url.Content("~/Scripts/MicrosoftAjax.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/Scripts/MicrosoftMvcAjax.js") %>" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content-main">
        <h2><img src="<%= Url.Content("~/Content/images/FinalDesign/Icons/notebook24.png") %>" />Blog de <%= Model.Alias %></h2>
        <%foreach (PostViewModel p in Model.Posts)
          {
              Html.RenderPartial("ShowPost", p);
          }%>
    </div>
    <div class="content-right">
        <%if ((bool)ViewData["isuser"])
          {
              Html.RenderPartial("UserMenu", Model.Element as User);
          }
          else
          {
              Html.RenderPartial("GroupMenu", Model.Element as LCA.Community.DAL.Model.Group);
          }%>
    </div>
</asp:Content>
